package com.epam.kulibaba.dataProvider;

import java.io.IOException;

import org.testng.annotations.DataProvider;

import com.epam.kulibaba.configuration.TestConfig;
import com.epam.kulibaba.data_reader.ExcelRead;

public class TestDataProvider {
	@DataProvider
	public static Object[][] readPriceSortTest() throws IOException {

		ExcelRead read = new ExcelRead(TestConfig.getExcelFilePath());
		return read.readExcel(TestConfig.getExcelSheetForTestPriceSort());
	}
	@DataProvider
	public static Object[][] readNameSortTest() throws IOException {

		ExcelRead read = new ExcelRead(TestConfig.getExcelFilePath());	
	return read.readExcel(TestConfig.getExcelSheetForTestNameSort());
	}
	
	@DataProvider
	public static Object[][] readCheckProductsCompareTest() throws IOException {

		ExcelRead read = new ExcelRead(TestConfig.getExcelFilePath());	
	return read.readExcel(TestConfig.getExcelSheetForTestCheckProductsCompare());
	}
	
	@DataProvider
	public static Object[][] readCheckPriceFilterTest() throws IOException {

		ExcelRead read = new ExcelRead(TestConfig.getExcelFilePath());	
	return read.readExcel(TestConfig.getExcelSheetForTestCheckPriceFilter());
	}	
	
	@DataProvider
	public static Object[][] readCheckProducerFilterTest() throws IOException {

		ExcelRead read = new ExcelRead(TestConfig.getExcelFilePath());	
	return read.readExcel(TestConfig.getExcelSheetForTestCheckProducerFilter());
	}
	
	@DataProvider
	public static Object[][] readCheckWeightAdjustmentFilterTest() throws IOException {

		ExcelRead read = new ExcelRead(TestConfig.getExcelFilePath());	
	return read.readExcel(TestConfig.getExcelSheetForTestCheckWeightAdjustmentFilter());
	}
	
	@DataProvider
	public static Object[][] readCheckInformationAboutProductsTest() throws IOException {

		ExcelRead read = new ExcelRead(TestConfig.getExcelFilePath());	
	return read.readExcel(TestConfig.getExcelSheetForTestCheckInformationAboutProducts());
	}
}
